/*
  * The contents of this file are subject to the Mozilla Public License
  * Version 1.1 (the "License");  you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
  * http//www.mozilla.org/MPL/
  *
  * Software distributed under the License is distributed on an "AS IS" basis,
  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
  * the specific language governing rights and limitations under the License.
  *
  * The Original Code is Range-Annotator.
  *
  * The Initial Developer of the Original Code is University of Roma Tor Vergata.
  * Portions created by University of Roma Tor Vergata are Copyright (C) 2008.
  * All Rights Reserved.
  *
  * ST-EXT-SemanticAnnotation was developed by the Artificial Intelligence Research Group
  * (ai-nlp.info.uniroma2.it) at the University of Roma Tor Vergata
  * Current information about ST-EXT-SemanticAnnotation can be obtained at 
  * http//ai-nlp.info.uniroma2.it/software/...
  *
  */
package it.uniroma2.art.rangeannotator.osgi.bundle;

import it.uniroma2.art.rangeannotator.osgi.service.RangeAnnotation;
import it.uniroma2.art.semanticturkey.plugin.extpts.ServiceInterface;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

/**
 * @author Noemi Scarpato
 *
 */
public class RangeAnnotatorBundle implements BundleActivator {

	/**
	 * 
	 */
	protected static Logger logger = LoggerFactory.getLogger(RangeAnnotatorBundle.class);

	public void start(BundleContext context) throws Exception {

		logger.info("registering services");

		context.registerService(ServiceInterface.class.getName(), new RangeAnnotation("rangeAnnotation"), null);
		logger.info("service rangeAnnotation has been registered");
    }

    public void stop(BundleContext context) throws Exception {
        // TODO Auto-generated method stub

    }

}
